import { domainService } from '~/config/server'
import { NetService } from '~/utils/net.service'
import { Inject, Debounce } from "~/core/decorator";

export class CaseQueueService {
  @Inject(NetService)
  private netService: NetService

  /**
   * 外包-设置经办
   */
  public viewOrgOutMessage(data, page) {
    return this.netService.send({
      server: domainService.caseQueueController.viewOrgOutMessage,
      data,
      loading: true,
      page
    })
  }
  /**
   * 外包-设置经办 提交
   */
  public handlerSettingOrgout(data) {
    return this.netService.send({
      server: domainService.caseQueueController.handlerSettingOrgout,
      data,
      loading: true
    })
  }
  /**
   * 队列管理 - 设置经办 - 历史注记
   */
  public getHandleRemarksByQueueId(data, page) {
    return this.netService.send({
      server: domainService.caseQueueController.getHandleRemarksByQueueId,
      data,
      loading: true,
      page,
    })
  }
  /**
   * 队列管理 - 设置经办 - 历史注记
   */
  public getQueueSignHis(data) {
    return this.netService.send({
      server: domainService.caseQueueController.getQueueSignHis,
      data,
    })
  }
}